import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [

    {
      path: '/login', component: () => import('@/views/login/index.vue')

    }, // 登录页
    //管理员账号相关
    {
      path: '/manager',
      component: () => import('@/views/manager/index.vue')
    },
    {
      path: '/student',
      component: () => import('@/views/student/index.vue')
    },
    {
      path: '/',
      redirect: '/login'
    }
  ]
})

export default router
